function handles = autoFillROI(handles)
% autoFillROI
% 
% Editing:
% gs may 2005
% -----------------------------------------------

% vals = [
%     6   8   1   16
%     1   16  7   10
%     7   10  6   11
% ];

S = which('private/setAsDefault');
[pathname, filename, extname] = fileparts(S);
loadfile = [pathname '\savedROI'];
try
    load(loadfile, 'ROI');
    handles.analysis.mapAverager.ROI = ROI;
catch
    return
end

set(handles.colROIfirstRow,'String', num2str(handles.analysis.mapAverager.ROI.colROIfirstRow));
% handles.analysis.mapAverager.ROI.colROIfirstRow = str2double(get(handles.colROIfirstRow,'String'));

set(handles.colROIlastRow,'String', num2str(handles.analysis.mapAverager.ROI.colROIlastRow));
% handles.analysis.mapAverager.ROI.colROIlastRow = str2double(get(handles.colROIlastRow,'String'));

set(handles.colROIfirstCol,'String', num2str(handles.analysis.mapAverager.ROI.colROIfirstCol));
% handles.analysis.mapAverager.ROI.colROIfirstCol = str2double(get(handles.colROIfirstCol,'String'));

set(handles.colROIlastCol,'String', num2str(handles.analysis.mapAverager.ROI.colROIlastCol));
% handles.analysis.mapAverager.ROI.colROIlastCol = str2double(get(handles.colROIlastCol,'String'));

set(handles.rowROIfirstRow,'String', num2str(handles.analysis.mapAverager.ROI.rowROIfirstRow));
% handles.analysis.mapAverager.ROI.rowROIfirstRow = str2double(get(handles.rowROIfirstRow,'String'));

set(handles.rowROIlastRow,'String', num2str(handles.analysis.mapAverager.ROI.rowROIlastRow));
% handles.analysis.mapAverager.ROI.rowROIlastRow = str2double(get(handles.rowROIlastRow,'String'));

set(handles.rowROIfirstCol,'String', num2str(handles.analysis.mapAverager.ROI.rowROIfirstCol));
% handles.analysis.mapAverager.ROI.rowROIfirstCol = str2double(get(handles.rowROIfirstCol,'String'));

set(handles.rowROIlastCol,'String', num2str(handles.analysis.mapAverager.ROI.rowROIlastCol));
% handles.analysis.mapAverager.ROI.rowROIlastCol = str2double(get(handles.rowROIlastCol,'String'));

set(handles.allROIfirstRow,'String', num2str(handles.analysis.mapAverager.ROI.allROIfirstRow));
% handles.analysis.mapAverager.ROI.allROIfirstRow = str2double(get(handles.allROIfirstRow,'String'));

set(handles.allROIlastRow,'String', num2str(handles.analysis.mapAverager.ROI.allROIlastRow));
% handles.analysis.mapAverager.ROI.allROIlastRow = str2double(get(handles.allROIlastRow,'String'));

set(handles.allROIfirstCol,'String', num2str(handles.analysis.mapAverager.ROI.allROIfirstCol));
% handles.analysis.mapAverager.ROI.allROIfirstCol = str2double(get(handles.allROIfirstCol,'String'));

set(handles.allROIlastCol,'String', num2str(handles.analysis.mapAverager.ROI.allROIlastCol));
% handles.analysis.mapAverager.ROI.allROIlastCol = str2double(get(handles.allROIlastCol,'String'));

